<template>
	<view class="content">
		<view class="tabs"></view>
		<view style="width: 100vw;background-color: #F0AD4E;">
	  <u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color='#000' bar-width='110'></u-tabs>	
		</view>
		<view class="numberPad">
			<view class="output">
				<view>备注</view>
				<input type="text" placeholder="点击写备注">
				<view class="out">{{result}}</view>
			</view>
			<ul class='numberPad'>
				<li @click='selected(7)'>7</li>
				<li @click='selected(8)'>8</li>
				<li @click='selected(9)'>9</li>
				<li @click='selected'>今天</li>
				<li @click='selected(4)'>4</li>
				<li @click='selected(5)'>5</li>
				<li @click='selected(6)'>6</li>
				<li @click='selected'>+</li>
				<li @click='selected(1)'>1</li>
				<li @click='selected(2)'>2</li>
				<li @click='selected(3)'>3</li>
				<li @click='selected'>-</li>
				<li>.</li>
				<li @click='selected(0)'>0</li>
				<li @click='selected'>x</li>
				<li @click='selected'>完成</li>
			</ul>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '支出'
				}, {
					name: '收入'
				}, ],
				current: 0,
				result:'0.00'
			}
		},
		onLoad() {

		},
		methods: {
		change(index) {
				this.current = index;
			},
			selected:function(e){
				this.result = e
			}
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	  .numberPad{
		  background-color: $u-type-info-light;
		  display: flex;
		  flex-direction: column;
		 .output{
			 height: 80rpx;
			 line-height: 80rpx;
			 display: flex;
			 flex-direction: row;
			 align-items: center;
			 justify-content: center;
			 input{
				width: 80vw;
			 }
			 .out{
				text-align: right;
				padding-right: 10rpx;
				font-size: 55rpx;
			 }
		 }
		 .numberPad{
			 display: flex;
			 flex-direction: row;
			 flex-wrap: wrap;
			 li{
				 width: 25%;
				 height: 88rpx;
				 border:1rpx solid  #F0AD4E;
				 text-align: center;
				 line-height: 88rpx;
			 }
		 }
	  }
	}

</style>
